<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-trasitional.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" href="../../css/table.css" type="text/css" />
		<title>无标题文档</title>
	 
	</head>

	<body>
		 
		<form method="post" action="/salary/successReview" > 
		
		<input type="hidden" name="standard.ssdId" value="1259">
		
			<table width="100%">
				<tr>
					<td>
						<font color="#0000CC">您正在做的业务是:人力资源管理--薪酬标准管理--薪酬标准登记复核</font>
					</td>
				</tr>
				<tr>
					<td>
						<div align="right">
							<input type="button" value="复核通过" class="BUTTON_STYLE1" onclick="check();">
							<input type="button" value="返回" onclick="javascript:history.back(-1);"  class="BUTTON_STYLE1">
						</div>
					</td>
				</tr>
			</table> 
			 
			<table width="100%" border="1" cellpadding=0 cellspacing=1
				bordercolorlight='#848284' bordercolordark='#eeeeee'
				class="TABLE_STYLE1">
				<tr>
					<input type="hidden" name="ssdId" class="INPUT_STYLE2" th:value="${standard.ssdId}" >
					<input type="hidden" name="changer" class="INPUT_STYLE2">
					<input type="hidden" name="changeTime" class="INPUT_STYLE2">
					<input type="hidden" name="checkStatus" class="INPUT_STYLE2" value="1">
					<input type="hidden" name="changeStatus" class="INPUT_STYLE2">
					<td width="12%" class="TD_STYLE1">
						薪酬编号
					</td>
					<td width="15%" class="TD_STYLE2">
					<input type="text" name="standardId"  th:value="${standard.standardId}" class="INPUT_STYLE2" readonly="readonly"/>
					</td>
					<td width="12%" class="TD_STYLE1">
						薪酬标准名称
					</td>
					<td width="11%" class="TD_STYLE2">
						<input type="text" name="standardName" id="standardName" th:value="${standard.standardName}"  class="INPUT_STYLE2">
					 
					</td>
					<td width="11%" class="TD_STYLE1">
						薪酬总额
					</td>
					<td width="17%" class="TD_STYLE2">
					<input type="text" name="salarySum" th:value="${standard.salarySum}" id="sumSalary" class="INPUT_STYLE2">
					 	</td>
					<td width="12%" class="TD_STYLE1">
						&nbsp;
					</td>
					<td width="10%" class="TD_STYLE2">
						&nbsp;
					</td>
				</tr>
				<tr>
					<td class="TD_STYLE1">
						制定人
					</td>
					<td class="TD_STYLE2">
					<input type="text" name="designer" id="designer" th:value="${standard.designer}" class="INPUT_STYLE2" readonly="readonly">
						 
					</td>
					<td class="TD_STYLE1">
						复核人
					</td>
					<td class="TD_STYLE2">
					<input type="text" name="checker" th:value="${standard.checker}" class="INPUT_STYLE2">
					</td>
					<td class="TD_STYLE1">
						复核时间
					</td>
					<td class="TD_STYLE2">
					<input type="text" name="checkTime"  th:value="${standard.checkTime}" class="INPUT_STYLE2">
					</td>
					<td class="TD_STYLE1">
						&nbsp;
					</td>
					<td class="TD_STYLE2">
						&nbsp;
					</td>
				</tr>
				<tr>
					<td class="TD_STYLE1">
						复核意见 
					</td>
					<td colspan="7" class="TD_STYLE2">
					<textarea name="checkComment" rows="4" class="INPUT_STYLE2"></textarea>
					</td>
				</tr>
				<tr>
					<td class="TD_STYLE1">
						序号
					</td>
					<td colspan="3" class="TD_STYLE1">
						薪酬项目名称
					</td>
					<td colspan="4" class="TD_STYLE1">
						金额
					</td>
				</tr>
				
				<tr class="TD_STYLE2">
					<td align="center">
						<input type="hidden" name="details[0].sdtId" value="1260" />
						<input type="hidden" name="details[0].itemId" value="63" />
						 63
					</td>
					<td colspan="3">
					<input type="hidden" name="details[0].standardId" value="1353320184280" />
					<input type="hidden" name="details[0].standardName" value="薪酬标准3" />
					<input type="hidden" name="details[0].itemName" value="出差补助" />
					出差补助
					</td>
					<td>
					<input type="text" id="salary1" value="0.0" name="details[0].salary" 
						onkeyup="countMoney('6','salary1')" class="INPUT_STYLE2">
			
					</td>
					<td colspan="3">
						&nbsp;
					</td>
				</tr>
			 	
				<tr class="TD_STYLE2">
					<td align="center">
						<input type="hidden" name="details[1].sdtId" value="1261" />
						<input type="hidden" name="details[1].itemId" value="64" />
						 64
					</td>
					<td colspan="3">
					<input type="hidden" name="details[1].standardId" value="1353320184280" />
					<input type="hidden" name="details[1].standardName" value="薪酬标准3" />
					<input type="hidden" name="details[1].itemName" value="交通补贴" />
					交通补贴
					</td>
					<td>
					<input type="text" id="salary2" value="0.0" name="details[1].salary" 
						onkeyup="countMoney('6','salary2')" class="INPUT_STYLE2">
			
					</td>
					<td colspan="3">
						&nbsp;
					</td>
				</tr>
			 	
				<tr class="TD_STYLE2">
					<td align="center">
						<input type="hidden" name="details[2].sdtId" value="1262" />
						<input type="hidden" name="details[2].itemId" value="65" />
						 65
					</td>
					<td colspan="3">
					<input type="hidden" name="details[2].standardId" value="1353320184280" />
					<input type="hidden" name="details[2].standardName" value="薪酬标准3" />
					<input type="hidden" name="details[2].itemName" value="住房补贴" />
					住房补贴
					</td>
					<td>
					<input type="text" id="salary3" value="0.0" name="details[2].salary" 
						onkeyup="countMoney('6','salary3')" class="INPUT_STYLE2">
			
					</td>
					<td colspan="3">
						&nbsp;
					</td>
				</tr>
			 	
				<tr class="TD_STYLE2">
					<td align="center">
						<input type="hidden" name="details[3].sdtId" value="1263" />
						<input type="hidden" name="details[3].itemId" value="66" />
						 66
					</td>
					<td colspan="3">
					<input type="hidden" name="details[3].standardId" value="1353320184280" />
					<input type="hidden" name="details[3].standardName" value="薪酬标准3" />
					<input type="hidden" name="details[3].itemName" value="基本工资" />
					基本工资
					</td>
					<td>
					<input type="text" id="salary4" value="0.0" name="details[3].salary" 
						onkeyup="countMoney('6','salary4')" class="INPUT_STYLE2">
			
					</td>
					<td colspan="3">
						&nbsp;
					</td>
				</tr>
			 	
				<tr class="TD_STYLE2">
					<td align="center">
						<input type="hidden" name="details[4].sdtId" value="1264" />
						<input type="hidden" name="details[4].itemId" value="67" />
						 67
					</td>
					<td colspan="3">
					<input type="hidden" name="details[4].standardId" value="1353320184280" />
					<input type="hidden" name="details[4].standardName" value="薪酬标准3" />
					<input type="hidden" name="details[4].itemName" value="年终奖" />
					年终奖
					</td>
					<td>
					<input type="text" id="salary5" value="0.0" name="details[4].salary" 
						onkeyup="countMoney('6','salary5')" class="INPUT_STYLE2">
			
					</td>
					<td colspan="3">
						&nbsp;
					</td>
				</tr>
			 	
				<tr class="TD_STYLE2">
					<td align="center">
						<input type="hidden" name="details[5].sdtId" value="1265" />
						<input type="hidden" name="details[5].itemId" value="68" />
						 68
					</td>
					<td colspan="3">
					<input type="hidden" name="details[5].standardId" value="1353320184280" />
					<input type="hidden" name="details[5].standardName" value="薪酬标准3" />
					<input type="hidden" name="details[5].itemName" value="误餐补助" />
					误餐补助
					</td>
					<td>
					<input type="text" id="salary6" value="0.0" name="details[5].salary" 
						onkeyup="countMoney('6','salary6')" class="INPUT_STYLE2">
			
					</td>
					<td colspan="3">
						&nbsp;
					</td>
				</tr>
				
			</table>
		</form>
		<script type="text/javascript">
		
		function back(){
			location.href="/salarystandard/getallstandard";
		}
		
		function check(){
				
				var designer=document.getElementById("designer");
				var standardName=document.getElementById("standardName");
				if(designer.value.length<=0){
				alert("制定人不可为空!!!");
						return ;
				}
				if(standardName.value.length<=0){
				alert("薪酬标准名称不可为空!!!");
					return ;
				}
			document.forms[0].submit();
		}
		function countMoney(obj,o) {
		
		if (isNaN(document.getElementById(o).value) || document.getElementById(o).value < 0) {
		alert("金额填写错误!");
		document.getElementById(o).value="0.00";
		return;
	}
		var sum=0;
	 	for(var i=1;i<=obj;i++){
	 		var salary=document.getElementById("salary"+i).value;
	 		if(salary==""){
	 		salary="0.00";
	 		}
	 		sum=Number(sum)+Number(salary);
	 		 
	 }
	 document.getElementById("sumSalary").value=sum;
	 
}
		</script>
	</body>
</html>

